<?php

namespace App\Models;

/**
 * @mixin IdeHelperInvitationRegister
 */
class InvitationRegister extends BaseModel
{
    public function user()
    {
        return $this->belongsTo(FrontendUser::class, 'invite_id', 'id');
    }

    public function activity()
    {
        return $this->belongsTo(InvitationActivity::class, 'acitvity_id');
    }

    public function auth()
    {
        return $this->belongsTo(UserAuth::class, 'invite_id', 'user_id');
    }
}
